swal({title: "Good job", text: "You clicked the button!", type: "success"},
function(){
location.reload();
}
);
swal({title: "Good job", text: "You clicked the button!", type:
"success"}).then(function(){
location.reload();
}
);